﻿<%@ Page Language="C#"   MasterPageFile="~/web/pages/MasterDefault.master" AutoEventWireup="true"
    CodeFile="dangkynhatuyendung_nextstep.aspx.cs" Inherits="web_pages_dangkynhatuyendung_nextstep"
    Title="đăng ký nhà tuyển dụng (tt)" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script type="text/javascript" language="javascript" >
         function LoadListBox(){
                var list_id = "";
               var optionsSel = document.getElementById('ctl00_ContentPlaceHolder1_list_nganh_kd');
	            for (var i = 0; i < optionsSel.length; i++) {
                 list_id = list_id + optionsSel.options[i].value + '#';
                 list_id = list_id + optionsSel.options[i].text + '#';
	            }
            $('#ctl00_ContentPlaceHolder1_list_nganh_kd_hidden').val(list_id);
			
            //var errormess = "Có một số thiếu sót trong hồ sơ : \n ";
			var errormess = "Co mot so thieu sot trong ho so : \n ";
            var check = true;
             //if( $('#ctl00_ContentPlaceHolder1_txt_nam_thanh_lap').val().length < 3 ){
              //      check = false;
              //      errormess += " \t - Năm Thành Lập \n ";
              //}
              if( $('#ctl00_ContentPlaceHolder1_txt_dia_chi_THX_hidden').val().length < 3 ){
                    check = false;
                    //errormess += " \t - Địa Chỉ Nhà Tuyển Dụng \n ";
					errormess += " \t - Dia chi nha tuyen dung \n ";
              }
              if( $('#ctl00_ContentPlaceHolder1_list_nganh_kd_hidden').val().length < 1 ){
                    check = false;
                    //errormess += " \t - Lĩnh vực Hoạt Động \n ";
					errormess += " \t - Linh vuc hoat dong \n ";
              }
            if(check==false) alert(errormess);
             return check;
           // alert(list_id);
         }
    
    </script>
    
    <div class="vl_left_news_main_tt">
        Đăng Ký Nhà Tuyển Dụng <%=mess %>
    </div>
    <div>
        <div style="padding: 2px;" class="ui-widget ui-widget-content ui-corner-all ">
            <div style="height: 20px; padding-top: 5px; padding-left: 20px;" class="ui-widget-header ui-corner-all ">
                Bước 2: Đăng ký thông tin Nhà Tuyển Dụng
            </div>
            <div style="padding: 5px;">
                <h4>
                    <span class="ui-icon ui-icon-power" style="float: left; margin-right: 0.3em;"></span>
                    Thông tin Chi tiết Doanh Nghiệp
                </h4>
                <div align="center" class="ui-dialog-buttonpane">
                    <table>
                        <tr>
                            <td align="left" style="width: 139px">
                                Tên Tổ chức - Doanh Nghiệp</td>
                            <td align="left" style="width: 252px">
                                <asp:Label ID="txt_ten_doanh_nghiep" runat="server" Font-Bold="True" Text="Label"></asp:Label></td>
                            <td style="width: 36px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px">
                                Tên viết tắt</td>
                            <td align="left" style="width: 252px">
                                <asp:TextBox ID="txt_tenviettat" runat="server" Width="226px"></asp:TextBox></td>
                            <td style="width: 36px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px; height: 15px">
                                Logo
                            </td>
                            <td align="left" style="width: 252px; height: 15px">
                                <asp:FileUpload ID="txt_hinh_anh" runat="server" Width="234px" /></td>
                            <td style="width: 36px; height: 15px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px; height: 15px">
                                Năm thành lập</td>
                            <td align="left" style="width: 252px; height: 15px">
                                <asp:TextBox ID="txt_nam_thanh_lap" runat="server" Width="62px"></asp:TextBox></td>
                            <td style="width: 36px; height: 15px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px; height: 15px">
                                Quốc Gia</td>
                            <td align="left" style="width: 252px; height: 15px">
                                <asp:DropDownList ID="cbb_quoc_gia" runat="server" Width="132px">
                                </asp:DropDownList></td>
                            <td style="width: 36px; height: 15px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px">
                                Mã số thuế</td>
                            <td align="left" style="width: 252px">
                                <asp:TextBox ID="txt_ma_so_thue" runat="server"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="*"
                                    ValidationExpression="\d{10}" ControlToValidate="txt_ma_so_thue"></asp:RegularExpressionValidator></td>
                            <td style="width: 36px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px">
                                Địa chỉ chi tiết</td>
                            <td align="left" style="width: 252px">
                                <asp:TextBox ID="txt_dia_chi_chi_tiet" runat="server" Width="226px"></asp:TextBox></td>
                            <td style="width: 36px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px; height: 11px;">
                                Địa chỉ (T-H-X)</td>
                            <td align="left" style="width: 252px; height: 11px;">
                                <asp:TextBox ID="txt_diachi_thx" runat="server" Width="226px" Style="float: left;"></asp:TextBox>
                                <a href="javascript:void(0);" id="dialog_diachi"><span class="ui-icon ui-icon-zoomin"></span></a>
                                <asp:HiddenField ID="txt_dia_chi_THX_hidden" runat="server" />
                            </td>
                            <td style="width: 36px; height: 11px;">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px; height: 24px;">
                                Điện Thoại</td>
                            <td align="left" style="width: 252px; height: 24px;">
                                <asp:TextBox ID="txt_dien_thoai" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txt_dien_thoai"
                                    ErrorMessage="*"></asp:RequiredFieldValidator></td>
                            <td style="width: 36px; height: 24px;">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px">
                                Fax</td>
                            <td align="left" style="width: 252px">
                                <asp:TextBox ID="txt_fax" runat="server"></asp:TextBox></td>
                            <td style="width: 36px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px; height: 15px">
                                Online Yahoo</td>
                            <td align="left" style="width: 252px; height: 15px">
                                <asp:TextBox ID="txt_yahoo" runat="server"></asp:TextBox></td>
                            <td style="width: 36px; height: 15px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px; height: 15px">
                                Online Skyper</td>
                            <td align="left" style="width: 252px; height: 15px">
                                <asp:TextBox ID="txt_skype" runat="server"></asp:TextBox></td>
                            <td style="width: 36px; height: 15px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px; height: 15px">
                                Website</td>
                            <td align="left" style="width: 252px; height: 15px">
                                <asp:TextBox ID="txt_website" runat="server" Width="226px"></asp:TextBox></td>
                            <td style="width: 36px; height: 15px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px">
                                Người đại diện</td>
                            <td align="left" style="width: 252px">
                                <asp:TextBox ID="txt_nguoi_dai_dien" runat="server" Width="226px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_nguoi_dai_dien"
                                    ErrorMessage="*"></asp:RequiredFieldValidator></td>
                            <td style="width: 36px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px">
                                Chức vụ</td>
                            <td align="left" style="width: 252px">
                                <asp:TextBox ID="txt_chuc_vu" runat="server" Width="226px"></asp:TextBox></td>
                            <td style="width: 36px">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 139px; height: 12px;" align="left">
                                Kiểu sở hữu</td>
                            <td style="width: 252px; height: 12px;" align="left">
                                <asp:DropDownList ID="cbb_kieu_so_huu" runat="server" Width="232px">
                                </asp:DropDownList></td>
                            <td style="width: 36px; height: 12px;">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 139px" align="left">
                                Lĩnh vực hoạt động</td>
                            <td style="width: 252px" align="left">
                                <asp:ListBox ID="list_nganh_kd" runat="server" Style="float: left;" Width="232px"  EnableViewState="true" AutoPostBack="True" CausesValidation="True" SelectionMode="Multiple"></asp:ListBox>
                                <a  href="javascript:void(0);" id="dialog_list_nganhnghe"><span class="ui-icon ui-icon-circle-plus"></span></a>
                                <a  href="javascript:void(0);" id="dialog_list_nganhnghe_remove"><span class="ui-icon  ui-icon-circle-minus"></span></a>
                                <asp:HiddenField ID="list_nganh_kd_hidden" runat="server" />
                            </td>
                            <td style="width: 36px">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 139px" align="left">
                                Số lao động</td>
                            <td style="width: 252px" align="left">
                                <asp:TextBox ID="txt_so_lao_dong" runat="server" Width="62px"></asp:TextBox></td>
                            <td style="width: 36px">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px">
                                Khu công nghiệp</td>
                            <td align="left" style="width: 252px">
                                <asp:DropDownList ID="cbb_khu_cn" runat="server" Width="232px">
                                </asp:DropDownList></td>
                            <td style="width: 36px">
                            </td>
                        </tr>
                    </table>
                    <br />
                    <asp:Button ID="Button1" CssClass="ui-corner-all ui-state-default" runat="server" OnClientClick="return LoadListBox();"
                        Text="Kiểm tra - Hoàn tất thông tin Nhà Tuyển Dụng" Height="27px" OnClick="Button1_Click" />
                    <br />
                    <br />
                </div>
                <h4>
                    <span class="ui-icon ui-icon-arrowthickstop-1-w" style="float: left; margin-right: 0.3em;">
                    </span><a href="dangkynhatuyendung.aspx">Quay lại bước 1 : Đăng ký thông tin đăng nhập
                    </a>
                </h4>
                <hr />
                <span class="ui-icon ui-icon-comment" style="float: left; margin-right: 0.3em;"></span>
                Dịch vụ được cung cấp bởi Trung Tâm GTVL. Vui lòng đọc kỹ <b><a href="#">
                    Điều khoản sử dụng</a></b> khi đăng tải và sử dụng thông tin từ website này.
            </div>
        </div>
    </div>
    <%--Dialog Setup--%>
    <div>
        <div id="dialog" class="ui-dialog-content ui-widget-content" style="height: auto;
            min-height: 61px; width: auto;">
            <br />
            Tỉnh / TP
            <asp:DropDownList ID="cbb_tinhthanh" runat="server">
               
            </asp:DropDownList>
            Quận / Huyện <span id="ajax_qh">
                <asp:DropDownList ID="cbb_quanhuyen" runat="server" onclick="loadPX()">
                </asp:DropDownList>
            </span>Phường / Xã <span id="ajax_px">
                <asp:DropDownList ID="cbb_phuongxa" runat="server">
                </asp:DropDownList>
            </span>
        </div>
        <div id="dialog2" class="ui-dialog-content ui-widget-content" style="height: auto;
            min-height: 61px;max-height:400px;overflow: auto; overflow-x: none; width: auto;text-align:left;">
           
                
               
                
           
        </div>
    </div>
</asp:Content>
